#include<iostream>

class Base
{
    public:
    virtual void show()
    {
        std::cout << "Base" << std::endl;
    }

    private:
};
class Derived:public Base
{
    public:
        void show()
        {
            std::cout << "Derived" << std::endl;
        }
};
int main()
{
    Base *b = new Derived;
    b->show();
    return 0;
}